package com.xja.service.impl;

import com.xja.entity.Bookinfo;
import com.xja.mapper.BookinfoMapper;
import com.xja.service.BookinfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 * @author 周广瑞
 * @date  2022/4/24 19:57
 * 
 */
@Service
public class BookinfoServiceImpl implements BookinfoService{
    @Transactional(readOnly = true)
    @Override
    public List<Bookinfo> slectBook() {
        return bookinfoMapper.slectBook();
    }

    @Resource
    private BookinfoMapper bookinfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer bid) {
        return bookinfoMapper.deleteByPrimaryKey(bid);
    }

    @Override
    public int insert(Bookinfo record) {
        return bookinfoMapper.insert(record);
    }

    @Override
    public Bookinfo selectByPrimaryKey(Integer bid) {
        return bookinfoMapper.selectByPrimaryKey(bid);
    }

    @Override
    public int updateByPrimaryKey(Bookinfo record) {
        return bookinfoMapper.updateByPrimaryKey(record);
    }



}
